package com.win.oauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.win.oauth.dto.*;
import com.win.oauth.entity.Permission;
import com.win.oauth.mapper.PermissionMapper;
import com.win.oauth.service.IPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author youlian.fei
 * @since 2020-03-14
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Override
    public List<ModulePermissionDTO> listModule() {
        return baseMapper.listModule();
    }

    @Override
    public List<FunPermissionDTO> listFun() {
        return baseMapper.listFun();
    }

    @Override
    public List<PermModuleFunDTO> listPermModuleFun() {
        return baseMapper.listPermModuleFun();
    }

    @Override
    public List<PermModuleDTO> listPermModule() {
        return baseMapper.listPermModule();
    }

    @Override
    public List<PermFunDTO> listPermFun() {
        return baseMapper.listPermFun();
    }
}
